#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) JoinQuant Development Team
# Author: Huayong Kuang <kuanghuayong@joinquant.com>


def variable(func):
    return func()


a = 2


@variable
def foo():
    return 2 ** a


print foo, type(foo)
